import http from '@/service/http'
import type { Request } from './types'

const MyApi = {
  getMyInfo() {
    return http.get('/api/web/admin/getMyInfo')
  },

  // 修改个人信息
  updateMyInfo(params: any) {
    return http.post('/api/web/admin/editMyInfo', params)
  },

  // 修改个人信息
  editMyInfoPassword(params: Request) {
    return http.post('/api/web/admin/editMyPassword', params)
  }
}

export default MyApi
